<?xml version="1.0" encoding="UTF-8" ?>
<%@page import="com.ks.sgms.dao.DepartmentDao"%>
<%@page import="com.ks.sgms.dao.ScoreDao"%>
<%@page import="java.util.*"%>
<%@page import="com.ks.sgms.entity.*"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>修改专业</title>
<style type="text/css">
	.s {
		width: 245px;
		height: 30px;
	}
	
	div {
		margin: 0 auto;
		width: 80%;
		text-align: center;
		border: 1px solid;
	}
</style>
</head>

<body>
<%
	request.setCharacterEncoding("UTF-8");
	String major_id = request.getParameter("major_id");
	Department d = new DepartmentDao().selectMajorById(major_id);
%>
	<div>
		请输入你要修改的成绩信息
		<form action="updateDepartment" method="post">
			<p>
				专业id：<input type="text" name="major_id_up" value="<%=d.major_id %>"/>
			</p>
			<p>
				专业名：<input type="text" name="major_name_up" value="<%=d.major_name %>"/>
			</p>
			<p>
				院系id：<input type="text" name="department_id_up" value="<%=d.department_id %>"/>
			</p>
			<p>
				<input type="submit" name="submit" value="确认" class="s" />
			</p>
		</form>
	</div>
</body>
</html>